package com.hypo.business.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 渠道商表
 *
 * @author shenkunlin
 * @since 2025-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_supplier")
@Schema(description = "渠道商表")
public class Supplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(title = "供应商名字")
    private String supplierName;

    @Schema(title = "联系人名字")
    private String linkName;

    @Schema(title = "联系人手机号")
    private String linkPhone;

    @Schema(title = "城市ID")
    private Integer cityCode;

    @Schema(title = "省份ID")
    private Integer provinceId;

    @Schema(title = "详细地址")
    private String address;

    @Schema(title = "SaaS标识")
    private String saasId;

    @Schema(title = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(title = "创建人账号")
    private String createBy;

    @Schema(title = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(title = "修改人账号")
    private String updateBy;

    @Schema(title = "是否删除  1 未删除  2 已删除")
    private Integer isDel;

    //市名
    @TableField(exist = false)
    private String cityName;
    //省份名
    @TableField(exist = false)
    private String provinceName;
}
